<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex balanceDetails_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between balanceDetails_fd0_0'>
					<view class='flex flex-wrap align-center balanceDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  balanceDetails_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='balanceDetails_fd0_0_c1_c0'>余额明细</text>
						<image class='balanceDetails_fd0_0_c2_c0001' mode="aspectFit" :src='STATIC_URL+"115.png"'
							@tap.stop="popupShow1672037696107=true" v-if="appSystemIdentification=='Wechat'"></image>
					</view>
					<view class='flex align-center justify-end balanceDetails_fd0_0_c2'>
						<image class='balanceDetails_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"115.png"'
							@tap.stop="popupShow1672037696107=true" v-if="appSystemIdentification!='Wechat'"></image>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view>
					<benben-flex-tabs class-name='balanceDetails_benbenTabsfd1_0' v-model="tab" ref="benben_tabsfd1_0"
						select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false'
						:open-sticky='true' :top='88' :is-show-content='false' :scrollspy='false'
						:tabs-info.sync="tabsInfofd1_0" @change="getDetailFunc()">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex align-center justify-around flex ">
									<view
										:class="{ 'checkTitlefd1_0': tab == '0', 'flex flex-wrap align-center': true }"
										@tap="tab = '0'" :id="`benben_tabsfd1_0-title-item-${'0'}`">

										<text>全部</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tab == '6', 'flex flex-wrap align-center': true }"
										@tap="tab = '6'" :id="`benben_tabsfd1_0-title-item-${'6'}`">

										<text>收入记录</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tab == '4', 'flex flex-wrap align-center': true }"
										@tap="tab = '4'" :id="`benben_tabsfd1_0-title-item-${'4'}`">

										<text>提现记录</text>

									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line balanceDetails_linefd1_0"></view>
							</view>
						</scroll-view>

					</benben-flex-tabs>

				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout balanceDetails_flex_2">
				<template v-for='(item,key0) in detailList'>
					<view class='flex flex-wrap align-center balanceDetails_fd2_0' :key='key0'>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub balanceDetails_fd2_0_c0'>
							<view class='flex flex-wrap align-center'>
								<text class='balanceDetails_fd2_0_c0_c0_c0'>{{item.remark}}</text>
								<view class='flex flex-wrap align-center balanceDetails_fd2_0_c0_c0_c1'
									v-if=" item.change_type=='4' && item.money_type!=1">
									<text class='balanceDetails_fd2_0_c0_c0_c1_c0'
										v-if=" item.check_status=='1'">审核中</text><text
										class='balanceDetails_fd2_0_c0_c0_c1_c0_1'
										v-if=" item.check_status=='2'">审核成功</text><text
										class='balanceDetails_fd2_0_c0_c0_c1_c0_2'
										v-if=" item.check_status=='3'">审核失败</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center balanceDetails_fd2_0_c0_c1'
								v-if=" item.check_reason!=''">
								<text class='balanceDetails_fd2_0_c0_c1_c0'>驳回原因：</text>
								<text class='flex-sub balanceDetails_fd2_0_c0_c1_c1'>{{item.check_reason}}</text>
							</view>
							<text class='balanceDetails_fd2_0_c0_c2'>{{item.create_time}}</text>
						</view>
						<text class='balanceDetails_fd2_0_c1'
							v-if=" item.money_type=='1'">{{item.change_money}}</text><text
							class='balanceDetails_fd2_0_c1_1' v-if=" item.money_type=='2'">{{item.change_money}}</text>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->
			<benben-popup v-model="popupShow1672037696107" :mask="true" :mask-close-able="true" mode="center">
				<benben-calendar :query="benbenCalendar" :start-time.sync='starTime' :end-time.sync='endTime'
					@change="hideWindowFunc()">
				</benben-calendar>
			</benben-popup>


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"popupShow1672037696107": false,
				"benbenCalendar": {
					'width': 622,
					'background': '#fff',
					'borderRadius': '24rpx 24rpx 24rpx 24rpx',
					'mode': 'range',
					'future': false,
					'changeTitle': true,
					'changeYear': true,
					'changeMonth': true,
					'yearArrowColor': '#666666',
					'monthArrowColor': '#999999',
					'startText': '',
					'endText': '',
					'activeBgColor': '#E60036',
					'rangeBgColor': '#FEE6EB'
				},
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"tab": "0",
				"detailList": [],
				"starTime": "",
				"endTime": ""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			/**
			 * @returns 
			 * Android       安卓
			 * IOS       苹果
			 * Web       H5 或 pc
			 * Wechat       微信小程序
			 * Alipay       支付宝小程序
			 * Baidu       百度小程序
			 * ByteBounce       抖音小程序
			 * 360       360小程序
			 * FastApp       快应用
			 */
			appSystemIdentification() {
				return this.$store.state.appSystemIdentification
			},
		},
		watch: {},
		onLoad(options) {
			this.getDetailFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getDetailFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取明细信息
			getDetailFunc() {
				this.minixPagingListsApi = global.apiUrls.post636dfee37deef;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					change_type: this.tab,
					start_time: this.starTime,
					end_time: this.endTime
				}
				this.listData = [];
				this.detailList = this.listData;
				this.pagingListToggle();

			},
			//隐藏弹窗
			hideWindowFunc() {
				this.popupShow1672037696107 = false;
				this.minixPagingListsApi = global.apiUrls.post636dfee37deef;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					change_type: this.tab,
					start_time: this.starTime,
					end_time: this.endTime
				}
				this.listData = [];
				this.detailList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto;
	}

	.balanceDetails_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.balanceDetails_fd0_0_c2_c0 {
		width: 34rpx;
		height: 32rpx;
	}
	.balanceDetails_fd0_0_c2_c0001 {
		width: 34rpx;
		height: 32rpx;
		margin-left: 16rpx;
	}

	.balanceDetails_fd0_0_c2 {
		width: 120rpx;
		height: 88rpx;
	}

	.balanceDetails_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
	}

	.balanceDetails_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
		font-weight: 500;
	}

	.balanceDetails_fd0_0_c0 {
		width: 100rpx;
	}

	.balanceDetails_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.balanceDetails_linefd1_0 {
		background: rgba(48, 144, 255, 1);
		width: 50rpx;
		height: 8rpx;
		top: 85rpx;
		background-size: 100% auto !important;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
	}

	.checkTitlefd1_0 {
		font-weight: 700 !important;
		font-size: 32rpx !important;
		color: rgba(51, 51, 51, 1) !important;
		background-color: rgba(255, 255, 255, 1) !important;
	}

	::v-deep .balanceDetails_benbenTabsfd1_0 {
		background: #fff;
		width: 750rpx;
		height: 94rpx;
		white-space: nowrap;
		text-align: center;
		font-size: 32rpx;
		font-weight: 400;
		color: #333333;
	}

	.balanceDetails_flex_2 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.balanceDetails_fd2_0_c1_1 {
		color: rgba(51, 51, 51, 1);
		font-size: 32rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.balanceDetails_fd2_0_c1 {
		color: #FF5050;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.balanceDetails_fd2_0_c0_c2 {
		color: #BFBFBF;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 34rpx;
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.balanceDetails_fd2_0_c0_c1_c1 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.balanceDetails_fd2_0_c0_c1_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
	}

	.balanceDetails_fd2_0_c0_c1 {
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.balanceDetails_fd2_0_c0_c0_c1_c0_2 {
		background: rgba(255, 237, 237, 1);
		color: rgba(255, 80, 80, 1);
		font-size: 22rpx;
		font-weight: 400;
		line-height: 40rpx;
		padding: 0rpx 14rpx 0rpx 14rpx;
		height: 40rpx;
		background-size: 100% auto;
		border-radius: 20rpx;
	}

	.balanceDetails_fd2_0_c0_c0_c1_c0_1 {
		background: rgba(229, 245, 235, 1);
		color: rgba(0, 152, 60, 1);
		font-size: 22rpx;
		font-weight: 400;
		line-height: 40rpx;
		padding: 0rpx 14rpx 0rpx 14rpx;
		height: 40rpx;
		background-size: 100% auto;
		border-radius: 20rpx;
	}

	.balanceDetails_fd2_0_c0_c0_c1_c0 {
		background: rgba(48, 144, 255, 0.1);
		color: #3090FF;
		font-size: 22rpx;
		font-weight: 400;
		line-height: 40rpx;
		padding: 0rpx 14rpx 0rpx 14rpx;
		height: 40rpx;
		background-size: 100% auto;
		border-radius: 20rpx;
	}

	.balanceDetails_fd2_0_c0_c0_c1 {
		margin: 0rpx 0rpx 0rpx 16rpx;
	}

	.balanceDetails_fd2_0_c0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 38rpx;
	}

	.balanceDetails_fd2_0_c0 {
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.balanceDetails_fd2_0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 24rpx 0rpx;
	}
</style>